#ifndef __ADC_Init_
#define __ADC_Init_

#ifdef __cplusplus
extern "C" {
#endif


#include "apm32f0xx_gpio.h"
#include "apm32f0xx_adc.h"
#include "apm32f0xx_misc.h"
#include "Board.h"
#include "stdio.h"
#include "math.h"
#include "mcu_api.h"
#include "protocol.h"
#include "apm32f0xx_dma.h" 





/* save adc data*/
#define ADC_CH_SIZE         2
#define ADC_DR_ADDR         ((uint32_t)ADC_BASE + 0x40)

extern uint16_t adcData[ADC_CH_SIZE];

void ADC_Init(void);
//void ADC_Isr(void);
void DMA_Init(void);
void ADC_MultiChannelPolling(void);
#ifdef __cplusplus
}
#endif

#endif
